<?php
/**
 *
 * PHP 5
 *
 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
 * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
 *
 * Licensed under The MIT License
 * Redistributions of files must retain the above copyright notice.
 *
 * @copyright     Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
 * @link          http://cakephp.org CakePHP(tm) Project
 * @package       Cake.View.Layouts
 * @since         CakePHP(tm) v 0.10.0.1076
 * @license       MIT License (http://www.opensource.org/licenses/mit-license.php)
 */

$cakeDescription = __d('cake_dev', 'CakePHP: the rapid development php framework');
?>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <?php echo $this->Html->charset(); ?>
    <title>ToDoリスト</title>
	
    <?php
        echo $this->Html->meta('icon');
		
        echo $this->Html->css('style');
        echo $this->Html->css('jquery-ui-1.9.2.custom.min');
        echo $this->Html->script('jquery-1.8.3.min');
        echo $this->Html->script('jquery-ui-1.9.2.custom.min');
    ?>
</head>
<body>
    <div id="wraper">
        <div class="header">
            <div class="border">&nbsp;</div>
            <div class="title"><span>ToDoリスト</span></div>
        </div>
        <div class="menu"><!-- menu -->
            <table>
                <tr>
                    <td>
                        <ul>
                            <li <?php echo ($this->action != 'create') ? 'class="selected"' : ''; ?>>
                                <?php echo $this->Html->link(__('一覧', true), array(
                                    'controller' => 'pages',
                                    'action' => 'index'
                                )); ?>
                            </li>
                            <li <?php echo ($this->action == 'create') ? 'class="selected"' : ''; ?>>
                                <?php echo $this->Html->link(__('新規作成', true), array(
                                    'controller' => 'pages',
                                    'action' => 'create'
                                )); ?>
                            </li>
                        </ul>
                    </td>
                </tr>
            </table>
        </div> <!-- end menu -->
        <!-- container -->
        <div class="container">
            <?php echo $this->fetch('content'); ?>
        </div><!-- end container -->
    </div>
    <?php //echo $this->element('sql_dump'); ?>
</body>
</html>
